You may need following things to get started. Please download and install
dependencies
- To install Paper Knowlegebase please make sure you have installed node and gulp.
Download Node
- You can use any software of your choice to edit HTML files or
Download VS Code
You will need to remove your current gulp global package before installing v4 in order to
do an upgrade.
Note: The $
shows the command is to be run on the
command line and shouldn’t be typed
$ npm rm -g gulp
$ npm install -g gulp-cli
This command removes your current global package and installs v4 from the gulp-cli 4.0
branch.
Make sure you don’t get any errors from the first command before you type the second.
Depending on your set-up, you may need to run them with sudo
.
To verify what version you have installed globally, you can run the below command (and
should see a similar output)
$ gulp -v
CLI version 1.2.1
It’s time to open Paper HTML app folder to your favorite editor. It’s easy to use an
editor which have terminal. Like VS Code or PhpStrom
First of all install all node modules by using this command:
$ npm install
After all node modules installation completed run
gulp watch
gulp watch will create a temporary folder with name of tmp
only change content in src folder tmp
folder is just for preview.
Please make sure you have the latest version of gulp CLI. You will need to remove your current gulp
global package before installing v4 in order to do an upgrade.
# Uninstall previous Gulp installation and related packages, if any
$ npm rm gulp -g
$ npm rm gulp-cli -g
$ cd [your-project-dir/]
$ npm rm gulp --save-dev
$ npm rm gulp --save
$ npm rm gulp --save-optional
$ npm cache clean
# Install the latest Gulp CLI tools globally
$ npm install gulpjs/gulp-cli -g
# Install Gulp 4 into your project from 4.0 GitHub branch as dev dependency
$ npm install gulpjs/gulp#4.0 --save-dev
# Check the versions installed. Make sure your versions are not lower than shown.
$ gulp -v
---
[10:48:35] CLI version 1.2.2
[10:48:35] Local version 4.0.0-alpha.2